<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
 	<script type="text/javascript" src="/res/js/pages/goods/cloudUserGoodsList.js"></script> 
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">积分商品</a></li>
    <li><a href="#">会员积分商品查询</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    <form id="queryForm" action="/goods/cloudUserGoodsList" method="post"> 
    <div class="tools" style="margin:3px 0px;background: #efefef;padding:6px 0px;">    
	    <span class="toolbar" style="margin-left:10px;">
	                   用户名：<input name="userName" value="${qry.userName}" type="text" class="dfinput" style="width:150px;"/>
	                   手机号：<input name="mobile" value="${qry.mobile}" type="text" class="dfinput" style="width:200px;"/>
		   发货状态：	
 			   <select class="dfinput"  name="isSend" style="width:150px;" onchange="submit()">
 			    <option value="-1">===全部===</option>
				<option value="0" ${qry.isSend==0?"selected":""}>未发货</option>
				<option value="1" ${qry.isSend==1?"selected":""}>已发货</option>
			   </select> 	                   
	    </span> 
    	<ul class="toolbar" style="margin-left:20px;">
	        <li onclick="$('#queryForm').submit()"><span><img src="/res/images/ico06.png" /></span>搜索</li>
        </ul>    
    </div>
    
    <table class="tablelist">
    	<thead>
	    	<tr>
	        <th class="chk"><input id="chkAll" type="checkbox" value="" /></th>
	        <th>编号</th>
	        <th>会员名</th>			
			<th>兑换商品</th>
			<th>消费商币</th>
			<th>兑换数量</th>
			<th>联系电话</th>
			<th>联系人</th>
			<th>收货地址</th>
			<th>兑换时间</th>
			<th>是否已发货</th>
			<th>快递号</th>
			<th>发货时间</th>
			<!-- <th>是否已确认收货</th> -->
			<th>操作员</th>
			<th>备注</th>
			<th>操作</th>   
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
 		        <tr>
		        <td align="center"><input id="chk_${row.id}" type="checkbox" value="${row.id}" /></td>
		        <td>${status.index+1}</td>
		        <td>${row.user_name}</td>		        
		        <td>${row.goods_name}</td>
		        <td>${row.cloud_money}</td>
		        <td>${row.amount}</td>
		        <td>${row.mobile}</td>
		        <td>${row.linkman}</td>
		        <td>${row.address}</td>
		        <td><fmt:formatDate value="${row.create_time}" pattern="yyyy-MM-dd HH:mm"/> </td>
		        <td>${(!empty(row.is_send) &&row.is_send==0?"未发货":(row.is_send==1?"已发货":""))}</td>
		        <td>${row.express_num}</td>
		        <td><fmt:formatDate value="${row.send_time}" pattern="yyyy-MM-dd HH:mm"/> </td>
		        <%-- <td>${(!empty(row.is_confirm) &&row.is_confirm==0?"未确认":(row.is_confirm==1?"已确认":""))}</td> --%>	  
		        <td>${row.admin_name}</td>
		        <td>
		           <a href="javascript:viewRemark('${row.id}')" class="tablelink">
		           ${fn:substring(row.remark,0,20)}${fn:length(row.remark)>20?"...":""}
		           </a>
		        </td>	
		        	
		        <td>	  
		           <c:if test="${empty(row.is_send)||row.is_send==0}">         
		              <a href="javascript:passDlg('${row.id}')" class="tablelink">发货</a>
		           </c:if>
		           <c:if test="${row.is_send==1}">      
		              <a href="javascript:cancelDlg('${row.id}')" class="tablelink">取消发货</a>
		           </c:if>		           
		        </td>	
		        </tr>  
	        </c:forEach>
         </tbody>
    </table>   
    </form>
      
    <tags:pager pagerRange="10" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
